.class public Lcom/estrongs/dlna/render/DlnaRenderManager;
.super Lcom/estrongs/dlna/core/c;
.source "DlnaRenderManager.java"

# interfaces
.implements Ljava/beans/PropertyChangeListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/dlna/render/DlnaRenderManager$d;
    }
.end annotation


# static fields
.field private static p:Lcom/estrongs/dlna/render/DlnaRenderManager;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Lorg/teleal/cling/UpnpService;

.field private c:Lorg/teleal/cling/model/ServiceManager;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lorg/teleal/cling/model/ServiceManager<",
            "Lcom/estrongs/dlna/render/c;",
            ">;"
        }
    .end annotation
.end field

.field private d:Lorg/teleal/cling/model/ServiceManager;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lorg/teleal/cling/model/ServiceManager<",
            "Lcom/estrongs/dlna/render/a;",
            ">;"
        }
    .end annotation
.end field

.field private e:Lorg/teleal/cling/model/ServiceManager;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lorg/teleal/cling/model/ServiceManager<",
            "Lcom/estrongs/dlna/render/b;",
            ">;"
        }
    .end annotation
.end field

.field private f:Lorg/teleal/cling/model/meta/LocalDevice;

.field private g:Lorg/teleal/cling/binding/LocalServiceBinder;

.field private h:Lorg/teleal/cling/model/meta/LocalService;

.field private i:Lorg/teleal/cling/model/meta/LocalService;

.field private j:Lorg/teleal/cling/model/meta/LocalService;

.field private final k:Lorg/teleal/cling/support/lastchange/LastChange;

.field private final l:Lorg/teleal/cling/support/lastchange/LastChange;

.field protected m:Lcom/estrongs/dlna/render/player/MediaPlayers;

.field private n:Lcom/estrongs/dlna/render/DlnaRenderManager$d;

.field private o:Z


# direct methods
.method private constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Lcom/estrongs/dlna/core/c;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->n:Lcom/estrongs/dlna/render/DlnaRenderManager$d;

    const/4 v0, 0x0

    .line 3
    iput-boolean v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->o:Z

    const-string v0, "org.xml.sax.driver"

    const-string v1, "org.xmlpull.v1.sax2.Driver"

    .line 4
    invoke-static {v0, v1}, Ljava/lang/System;->setProperty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    .line 5
    new-instance v0, Lorg/teleal/cling/support/lastchange/LastChange;

    new-instance v1, Lorg/teleal/cling/support/avtransport/lastchange/AVTransportLastChangeParser;

    invoke-direct {v1}, Lorg/teleal/cling/support/avtransport/lastchange/AVTransportLastChangeParser;-><init>()V

    invoke-direct {v0, v1}, Lorg/teleal/cling/support/lastchange/LastChange;-><init>(Lorg/teleal/cling/support/lastchange/LastChangeParser;)V

    iput-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->k:Lorg/teleal/cling/support/lastchange/LastChange;

    .line 6
    new-instance v0, Lorg/teleal/cling/support/lastchange/LastChange;

    new-instance v1, Lorg/teleal/cling/support/renderingcontrol/lastchange/RenderingControlLastChangeParser;

    invoke-direct {v1}, Lorg/teleal/cling/support/renderingcontrol/lastchange/RenderingControlLastChangeParser;-><init>()V

    invoke-direct {v0, v1}, Lorg/teleal/cling/support/lastchange/LastChange;-><init>(Lorg/teleal/cling/support/lastchange/LastChangeParser;)V

    iput-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->l:Lorg/teleal/cling/support/lastchange/LastChange;

    return-void
.end method

.method static synthetic a(Lcom/estrongs/dlna/render/DlnaRenderManager;)Lorg/teleal/cling/support/lastchange/LastChange;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->k:Lorg/teleal/cling/support/lastchange/LastChange;

    return-object p0
.end method

.method static synthetic b(Lcom/estrongs/dlna/render/DlnaRenderManager;)Lorg/teleal/cling/support/lastchange/LastChange;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->l:Lorg/teleal/cling/support/lastchange/LastChange;

    return-object p0
.end method

.method static synthetic c(Lcom/estrongs/dlna/render/DlnaRenderManager;)Lorg/teleal/cling/model/ServiceManager;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->d:Lorg/teleal/cling/model/ServiceManager;

    return-object p0
.end method

.method private c()Lorg/teleal/cling/model/meta/Icon;
    .locals 9

    const-string v0, "device_icon.png"

    .line 2
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->a:Landroid/content/Context;

    if-eqz v1, :cond_0

    .line 3
    new-instance v1, Lorg/teleal/cling/model/meta/Icon;

    const-string v3, "image/png"

    const/16 v4, 0x30

    const/16 v5, 0x30

    const/16 v6, 0x8

    invoke-static {v0}, Ljava/net/URI;->create(Ljava/lang/String;)Ljava/net/URI;

    move-result-object v7

    iget-object v2, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->a:Landroid/content/Context;

    .line 4
    invoke-virtual {v2}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v8

    move-object v2, v1

    invoke-direct/range {v2 .. v8}, Lorg/teleal/cling/model/meta/Icon;-><init>(Ljava/lang/String;IIILjava/net/URI;Ljava/io/InputStream;)V
    :try_end_0
    .catch Landroid/content/res/Resources$NotFoundException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    return-object v1

    :catch_0
    move-exception v0

    .line 5
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_0

    :catch_1
    move-exception v0

    .line 6
    invoke-virtual {v0}, Landroid/content/res/Resources$NotFoundException;->printStackTrace()V

    :cond_0
    :goto_0
    const/4 v0, 0x0

    return-object v0
.end method

.method static synthetic d(Lcom/estrongs/dlna/render/DlnaRenderManager;)Lorg/teleal/cling/model/ServiceManager;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->e:Lorg/teleal/cling/model/ServiceManager;

    return-object p0
.end method

.method private d()V
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->g:Lorg/teleal/cling/binding/LocalServiceBinder;

    if-nez v0, :cond_0

    .line 3
    new-instance v0, Lorg/teleal/cling/binding/annotations/AnnotationLocalServiceBinder;

    invoke-direct {v0}, Lorg/teleal/cling/binding/annotations/AnnotationLocalServiceBinder;-><init>()V

    iput-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->g:Lorg/teleal/cling/binding/LocalServiceBinder;

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->g:Lorg/teleal/cling/binding/LocalServiceBinder;

    const-class v1, Lcom/estrongs/dlna/render/c;

    invoke-interface {v0, v1}, Lorg/teleal/cling/binding/LocalServiceBinder;->read(Ljava/lang/Class;)Lorg/teleal/cling/model/meta/LocalService;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->h:Lorg/teleal/cling/model/meta/LocalService;

    .line 5
    new-instance v0, Lcom/estrongs/dlna/render/DlnaRenderManager$a;

    iget-object v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->h:Lorg/teleal/cling/model/meta/LocalService;

    invoke-direct {v0, p0, v1}, Lcom/estrongs/dlna/render/DlnaRenderManager$a;-><init>(Lcom/estrongs/dlna/render/DlnaRenderManager;Lorg/teleal/cling/model/meta/LocalService;)V

    iput-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->c:Lorg/teleal/cling/model/ServiceManager;

    .line 6
    iget-object v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->h:Lorg/teleal/cling/model/meta/LocalService;

    invoke-virtual {v1, v0}, Lorg/teleal/cling/model/meta/LocalService;->setManager(Lorg/teleal/cling/model/ServiceManager;)V

    .line 7
    iget-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->g:Lorg/teleal/cling/binding/LocalServiceBinder;

    const-class v1, Lcom/estrongs/dlna/render/a;

    invoke-interface {v0, v1}, Lorg/teleal/cling/binding/LocalServiceBinder;->read(Ljava/lang/Class;)Lorg/teleal/cling/model/meta/LocalService;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->i:Lorg/teleal/cling/model/meta/LocalService;

    .line 8
    new-instance v0, Lcom/estrongs/dlna/render/DlnaRenderManager$b;

    iget-object v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->i:Lorg/teleal/cling/model/meta/LocalService;

    invoke-direct {v0, p0, v1}, Lcom/estrongs/dlna/render/DlnaRenderManager$b;-><init>(Lcom/estrongs/dlna/render/DlnaRenderManager;Lorg/teleal/cling/model/meta/LocalService;)V

    iput-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->d:Lorg/teleal/cling/model/ServiceManager;

    .line 9
    iget-object v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->i:Lorg/teleal/cling/model/meta/LocalService;

    invoke-virtual {v1, v0}, Lorg/teleal/cling/model/meta/LocalService;->setManager(Lorg/teleal/cling/model/ServiceManager;)V

    .line 10
    iget-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->g:Lorg/teleal/cling/binding/LocalServiceBinder;

    const-class v1, Lcom/estrongs/dlna/render/b;

    invoke-interface {v0, v1}, Lorg/teleal/cling/binding/LocalServiceBinder;->read(Ljava/lang/Class;)Lorg/teleal/cling/model/meta/LocalService;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->j:Lorg/teleal/cling/model/meta/LocalService;

    .line 11
    new-instance v0, Lcom/estrongs/dlna/render/DlnaRenderManager$c;

    iget-object v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->j:Lorg/teleal/cling/model/meta/LocalService;

    invoke-direct {v0, p0, v1}, Lcom/estrongs/dlna/render/DlnaRenderManager$c;-><init>(Lcom/estrongs/dlna/render/DlnaRenderManager;Lorg/teleal/cling/model/meta/LocalService;)V

    iput-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->e:Lorg/teleal/cling/model/ServiceManager;

    .line 12
    iget-object v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->j:Lorg/teleal/cling/model/meta/LocalService;

    invoke-virtual {v1, v0}, Lorg/teleal/cling/model/meta/LocalService;->setManager(Lorg/teleal/cling/model/ServiceManager;)V

    return-void
.end method

.method private e()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->n:Lcom/estrongs/dlna/render/DlnaRenderManager$d;

    if-eqz v0, :cond_0

    const/4 v1, 0x1

    .line 2
    invoke-static {v0, v1}, Lcom/estrongs/dlna/render/DlnaRenderManager$d;->a(Lcom/estrongs/dlna/render/DlnaRenderManager$d;Z)Z

    :cond_0
    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->n:Lcom/estrongs/dlna/render/DlnaRenderManager$d;

    return-void
.end method

.method public static f()Lcom/estrongs/dlna/render/DlnaRenderManager;
    .locals 2

    .line 1
    sget-object v0, Lcom/estrongs/dlna/render/DlnaRenderManager;->p:Lcom/estrongs/dlna/render/DlnaRenderManager;

    if-nez v0, :cond_1

    .line 2
    const-class v0, Lcom/estrongs/dlna/render/DlnaRenderManager;

    monitor-enter v0

    .line 3
    :try_start_0
    sget-object v1, Lcom/estrongs/dlna/render/DlnaRenderManager;->p:Lcom/estrongs/dlna/render/DlnaRenderManager;

    if-nez v1, :cond_0

    .line 4
    new-instance v1, Lcom/estrongs/dlna/render/DlnaRenderManager;

    invoke-direct {v1}, Lcom/estrongs/dlna/render/DlnaRenderManager;-><init>()V

    sput-object v1, Lcom/estrongs/dlna/render/DlnaRenderManager;->p:Lcom/estrongs/dlna/render/DlnaRenderManager;

    .line 5
    :cond_0
    monitor-exit v0

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1

    .line 6
    :cond_1
    :goto_0
    sget-object v0, Lcom/estrongs/dlna/render/DlnaRenderManager;->p:Lcom/estrongs/dlna/render/DlnaRenderManager;

    return-object v0
.end method

.method private g()Lorg/teleal/cling/UpnpService;
    .locals 1

    .line 1
    invoke-static {}, Lcom/estrongs/dlna/core/b;->g()Lcom/estrongs/dlna/core/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/dlna/core/b;->a()Lorg/teleal/cling/android/AndroidUpnpService;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    invoke-interface {v0}, Lorg/teleal/cling/android/AndroidUpnpService;->get()Lorg/teleal/cling/UpnpService;

    move-result-object v0

    return-object v0

    :cond_0
    const/4 v0, 0x0

    return-object v0
.end method

.method private h()V
    .locals 1

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->d:Lorg/teleal/cling/model/ServiceManager;

    invoke-interface {v0}, Lorg/teleal/cling/model/ServiceManager;->getImplementation()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/dlna/render/a;

    invoke-virtual {v0}, Lorg/teleal/cling/support/avtransport/AbstractAVTransportService;->getPropertyChangeSupport()Ljava/beans/PropertyChangeSupport;

    move-result-object v0

    invoke-virtual {v0, p0}, Ljava/beans/PropertyChangeSupport;->addPropertyChangeListener(Ljava/beans/PropertyChangeListener;)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->e:Lorg/teleal/cling/model/ServiceManager;

    invoke-interface {v0}, Lorg/teleal/cling/model/ServiceManager;->getImplementation()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/dlna/render/b;

    invoke-virtual {v0}, Lorg/teleal/cling/support/renderingcontrol/AbstractAudioRenderingControl;->getPropertyChangeSupport()Ljava/beans/PropertyChangeSupport;

    move-result-object v0

    invoke-virtual {v0, p0}, Ljava/beans/PropertyChangeSupport;->addPropertyChangeListener(Ljava/beans/PropertyChangeListener;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    const-string v0, "registerPropertyListener throw exception"

    .line 3
    invoke-static {v0}, Les/m10;->c(Ljava/lang/String;)V

    :goto_0
    return-void
.end method

.method private i()V
    .locals 2

    .line 1
    invoke-direct {p0}, Lcom/estrongs/dlna/render/DlnaRenderManager;->e()V

    .line 2
    new-instance v0, Lcom/estrongs/dlna/render/DlnaRenderManager$d;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/estrongs/dlna/render/DlnaRenderManager$d;-><init>(Lcom/estrongs/dlna/render/DlnaRenderManager;Lcom/estrongs/dlna/render/DlnaRenderManager$a;)V

    iput-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->n:Lcom/estrongs/dlna/render/DlnaRenderManager$d;

    .line 3
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    return-void
.end method

.method private j()I
    .locals 12

    const-string v0, "http://estrongs.android.pop"

    .line 1
    iget-object v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->a:Landroid/content/Context;

    const/4 v2, 0x0

    if-nez v1, :cond_0

    const-string v0, "please init at first !!!"

    .line 2
    invoke-static {v0}, Les/m10;->b(Ljava/lang/String;)V

    return v2

    .line 3
    :cond_0
    iget-boolean v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->o:Z

    const/4 v3, 0x1

    if-eqz v1, :cond_1

    return v3

    .line 4
    :cond_1
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->b:Lorg/teleal/cling/UpnpService;

    if-nez v1, :cond_2

    .line 5
    invoke-direct {p0}, Lcom/estrongs/dlna/render/DlnaRenderManager;->g()Lorg/teleal/cling/UpnpService;

    move-result-object v1

    iput-object v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->b:Lorg/teleal/cling/UpnpService;

    .line 6
    :cond_2
    iget-object v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->h:Lorg/teleal/cling/model/meta/LocalService;

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->i:Lorg/teleal/cling/model/meta/LocalService;

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->j:Lorg/teleal/cling/model/meta/LocalService;

    if-nez v1, :cond_4

    .line 7
    :cond_3
    invoke-direct {p0}, Lcom/estrongs/dlna/render/DlnaRenderManager;->d()V

    .line 8
    :cond_4
    iget-object v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->m:Lcom/estrongs/dlna/render/player/MediaPlayers;

    if-nez v1, :cond_5

    .line 9
    new-instance v1, Lcom/estrongs/dlna/render/DlnaRenderManager$4;

    invoke-direct {v1, p0}, Lcom/estrongs/dlna/render/DlnaRenderManager$4;-><init>(Lcom/estrongs/dlna/render/DlnaRenderManager;)V

    iput-object v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->m:Lcom/estrongs/dlna/render/player/MediaPlayers;

    .line 10
    :cond_5
    iget-object v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->m:Lcom/estrongs/dlna/render/player/MediaPlayers;

    iget-object v4, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->k:Lorg/teleal/cling/support/lastchange/LastChange;

    iget-object v5, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->l:Lorg/teleal/cling/support/lastchange/LastChange;

    invoke-virtual {v1, v4, v5}, Lcom/estrongs/dlna/render/player/MediaPlayers;->initPlayers(Lorg/teleal/cling/support/lastchange/LastChange;Lorg/teleal/cling/support/lastchange/LastChange;)V

    .line 11
    invoke-static {}, Lcom/estrongs/dlna/core/b;->g()Lcom/estrongs/dlna/core/b;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/dlna/core/b;->c()Ljava/lang/String;

    move-result-object v1

    .line 12
    new-instance v4, Lorg/teleal/cling/model/meta/ManufacturerDetails;

    const-string v5, "ES"

    invoke-direct {v4, v5, v0}, Lorg/teleal/cling/model/meta/ManufacturerDetails;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 13
    new-instance v5, Lorg/teleal/cling/model/meta/ModelDetails;

    const-string v6, "ES File Explorer"

    const-string v7, "ES File Explorer\'s DLNA Render on Android"

    const-string v8, "V1"

    invoke-direct {v5, v6, v7, v8, v0}, Lorg/teleal/cling/model/meta/ModelDetails;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 14
    invoke-static {}, Les/n10;->d()Lorg/teleal/cling/model/types/UDN;

    move-result-object v0

    .line 15
    new-instance v7, Lorg/teleal/cling/model/meta/DeviceIdentity;

    invoke-direct {v7, v0}, Lorg/teleal/cling/model/meta/DeviceIdentity;-><init>(Lorg/teleal/cling/model/types/UDN;)V

    .line 16
    new-instance v8, Lorg/teleal/cling/model/types/UDADeviceType;

    const-string v0, "MediaRenderer"

    invoke-direct {v8, v0, v3}, Lorg/teleal/cling/model/types/UDADeviceType;-><init>(Ljava/lang/String;I)V

    .line 17
    new-instance v9, Lorg/teleal/cling/model/meta/DeviceDetails;

    invoke-direct {v9, v1, v4, v5}, Lorg/teleal/cling/model/meta/DeviceDetails;-><init>(Ljava/lang/String;Lorg/teleal/cling/model/meta/ManufacturerDetails;Lorg/teleal/cling/model/meta/ModelDetails;)V

    .line 18
    new-instance v0, Lorg/teleal/cling/model/meta/LocalDevice;

    invoke-direct {p0}, Lcom/estrongs/dlna/render/DlnaRenderManager;->c()Lorg/teleal/cling/model/meta/Icon;

    move-result-object v10

    const/4 v1, 0x3

    new-array v11, v1, [Lorg/teleal/cling/model/meta/LocalService;

    iget-object v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->h:Lorg/teleal/cling/model/meta/LocalService;

    aput-object v1, v11, v2

    iget-object v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->i:Lorg/teleal/cling/model/meta/LocalService;

    aput-object v1, v11, v3

    const/4 v1, 0x2

    iget-object v2, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->j:Lorg/teleal/cling/model/meta/LocalService;

    aput-object v2, v11, v1

    move-object v6, v0

    invoke-direct/range {v6 .. v11}, Lorg/teleal/cling/model/meta/LocalDevice;-><init>(Lorg/teleal/cling/model/meta/DeviceIdentity;Lorg/teleal/cling/model/types/DeviceType;Lorg/teleal/cling/model/meta/DeviceDetails;Lorg/teleal/cling/model/meta/Icon;[Lorg/teleal/cling/model/meta/LocalService;)V

    iput-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->f:Lorg/teleal/cling/model/meta/LocalDevice;

    .line 19
    iget-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->b:Lorg/teleal/cling/UpnpService;

    if-eqz v0, :cond_6

    .line 20
    iget-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->b:Lorg/teleal/cling/UpnpService;

    invoke-interface {v0}, Lorg/teleal/cling/UpnpService;->getRegistry()Lorg/teleal/cling/registry/Registry;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->f:Lorg/teleal/cling/model/meta/LocalDevice;

    invoke-interface {v0, v1}, Lorg/teleal/cling/registry/Registry;->addDevice(Lorg/teleal/cling/model/meta/LocalDevice;)V

    .line 21
    :cond_6
    invoke-direct {p0}, Lcom/estrongs/dlna/render/DlnaRenderManager;->h()V

    .line 22
    invoke-direct {p0}, Lcom/estrongs/dlna/render/DlnaRenderManager;->i()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return v3

    :catch_0
    move-exception v0

    .line 23
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    const/4 v0, -0x1

    return v0
.end method


# virtual methods
.method public a()V
    .locals 0

    .line 6
    invoke-direct {p0}, Lcom/estrongs/dlna/render/DlnaRenderManager;->j()I

    return-void
.end method

.method public a(Landroid/content/Context;)V
    .locals 1

    .line 2
    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->a:Landroid/content/Context;

    .line 3
    invoke-static {}, Lcom/estrongs/dlna/core/b;->g()Lcom/estrongs/dlna/core/b;

    move-result-object p1

    iget-object v0, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->a:Landroid/content/Context;

    invoke-virtual {p1, v0}, Lcom/estrongs/dlna/core/b;->a(Landroid/content/Context;)V

    .line 4
    invoke-static {}, Lcom/estrongs/dlna/core/b;->g()Lcom/estrongs/dlna/core/b;

    move-result-object p1

    invoke-virtual {p1, p0}, Lcom/estrongs/dlna/core/b;->a(Lcom/estrongs/dlna/core/c;)V

    .line 5
    invoke-static {}, Lcom/estrongs/dlna/core/b;->g()Lcom/estrongs/dlna/core/b;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/dlna/core/b;->f()V

    return-void
.end method

.method public a(Lcom/estrongs/dlna/render/player/MediaPlayers;)V
    .locals 0

    .line 7
    iput-object p1, p0, Lcom/estrongs/dlna/render/DlnaRenderManager;->m:Lcom/estrongs/dlna/render/player/MediaPlayers;

    return-void
.end method

.method public b()V
    .locals 0

    return-void
.end method

.method public propertyChange(Ljava/beans/PropertyChangeEvent;)V
    .locals 2

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "###"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/beans/PropertyChangeEvent;->getPropertyName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, " "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/beans/PropertyChangeEvent;->getNewValue()Ljava/lang/Object;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Les/m10;->b(Ljava/lang/String;)V

    return-void
.end method
